<?php $this->widget('bootstrap.widgets.TbGridView', array(
    'type'=>'striped bordered condensed',
    'dataProvider'  =>  $dataProvider,
    'pager'=>array(
        'class'=>'CLinkPager',           
        'nextPageLabel'=>'下一页',           
        'prevPageLabel'=>'上一页',           
        'header'=>'',   
    ),   
    'selectableRows'=> 2,
    'summaryText'   =>  '显示{start}-{end}条.共{count}条记录,当前第{page}页',
    'columns'       =>  array(
        array(
            'class' =>  'CCheckBoxColumn',
        ),
        array(
            'header'=>  '#',
            'name'  =>  'variable_id',
            'value' =>  '$data->variable_id'
        ),
        array(
            'header'=>  '工作流名',
            'name'  =>  'workflow_id',
            'value' =>  '$data->workflow->workflow_name',
        ),
        array(
            'header'=>  '名称',
            'name'  =>  'job_id',
            'value' =>  '$data->job->job_name',
        ),
        array(
            'name'  =>  'variable_name',
            'value' =>  '$data->variable_name',
        ),
        array(
            'name'  =>  'value',
            'value' =>  'print_r(CJSON::decode($data->value), true)'
        ),
    ),
));
?>
